﻿using NExt.Core.Model.Base;

namespace NExt.grid
{
    public class EditorGridPanel : EditorGridPanel<EditorGridPanelEvents>
    {
    }

    public abstract class EditorGridPanel<TEvents>: GridPanel<TEvents>
        where TEvents : EditorGridPanelEvents, new()
    {
        public int? clicksToEdit { get; set; }
    }

    public class EditorGridPanelEvents: GridPanelEvents
    {
        public IScript afteredit { get; set; }
        public IScript beforeedit { get; set; }
        public IScript validateedit { get; set; }
    }
}
